package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.ICreateCash
import fhp.hlhj.giantfold.javaBean.BaseBean
import fhp.hlhj.giantfold.module.CreateCashModule

/**
 * author: FHP
 * data: on 2018\1\29 0029 15:34
 * E-Mail: 103945089@qq.com
 */
class CreateCashPresenter(private val iCreateCash: ICreateCash) : CreateCashModule.onCommitListener {
    private val createCashModule=CreateCashModule()

    fun commitCreateCash(params: HttpParams){
        createCashModule.createCash(params,this)
    }

    override fun showLoading() {
        iCreateCash.showLoading()
    }

    override fun onCommit(baseBean: BaseBean) {
        iCreateCash.createCash(baseBean)
    }
}